{% extends "base.html" %}{% load i18n crm_tags %} {% block title %}{% translate "Attendance" %}{% endblock %} {% block content %}

{% if is_me %}{% translate "Your attendance" %}{% else %}{% blocktranslate trimmed with name=person.display_name %}Attendance: {{ name }}{% endblocktranslate %}{% endif %}

{{ first|date:"F Y" }}

{% if not is_me %}{% translate "Whole team" %}{% endif %} {{ prev_month|date:"M Y" }} {% if next_month %}{{ next_month|date:"M Y" }}{% endif %}
{% if today_summary %}{{ today_summary.first_in|clock }}{% else %}—{% endif %}{% translate "Signed in today" %}
{% if today_summary %}{{ today_summary.total|hours }}{% else %}—{% endif %}{% translate "Hours today" %}
{{ days_present }}{% translate "Days present this month" %}
{{ total|hours|default:"0 min" }}{% translate "Hours this month" %}

{% translate "Time starts when someone signs in and stops when they sign out. If they close the browser without signing out, it stops at their last activity." %}

{% if rows %}
{% for r in rows %} {% endfor %}
{% translate "Date" %}{% translate "Signed in" %}{% translate "Until" %}{% translate "Hours" %}
{{ r.day|date:"l j M" }} {{ r.s.first_in|clock }} {% if r.s.online %}{% translate "Online now" %}{% else %}{{ r.s.last_out|clock }}{% endif %} {{ r.s.total|hours }}
{% else %}
{% translate "No sign-ins this month." %}{% translate "Attendance is recorded automatically every time you sign in." %}
{% endif %} {% endblock %}